<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 6.0.0">
  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/images/logo.svg" color="#222">

<link rel="stylesheet" href="/css/main.css">


<link rel="stylesheet" href="/lib/font-awesome/css/all.min.css">

<script id="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"mosishall.gitee.com","root":"/","scheme":"Gemini","version":"7.8.0","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":true,"show_result":false,"style":null},"back2top":{"enable":true,"sidebar":true,"scrollpercent":true},"bookmark":{"enable":true,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":true,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":true},"motion":{"enable":true,"async":true,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},"path":"search.xml"};
  </script>

  <meta name="description" content="GitHub是目前网站非常流行的代码托管平台，本篇文章记录如何使用GitHub搭建个人博客。">
<meta property="og:type" content="article">
<meta property="og:title" content="使用GitHub+Hexo搭建个人博客网站">
<meta property="og:url" content="https://mosishall.gitee.com/2019/03/27/%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8github%E5%92%8Chexo%E6%90%AD%E5%BB%BA%E4%B8%AA%E4%BA%BA%E5%8D%9A%E5%AE%A2/index.html">
<meta property="og:site_name" content="MosiShall&#39;s Blog">
<meta property="og:description" content="GitHub是目前网站非常流行的代码托管平台，本篇文章记录如何使用GitHub搭建个人博客。">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://raw.githubusercontent.com/mosishall/images.github.io/master/crgithub_upload_remote/github_blogs/1.jpg">
<meta property="og:image" content="https://raw.githubusercontent.com/mosishall/images.github.io/master/crgithub_upload_remote/github_blogs/2.jpg">
<meta property="og:image" content="https://raw.githubusercontent.com/mosishall/images.github.io/master/crgithub_upload_remote/github_blogs/3.jpg">
<meta property="og:image" content="https://raw.githubusercontent.com/mosishall/images.github.io/master/crgithub_upload_remote/github_blogs/4.jpg">
<meta property="og:image" content="https://raw.githubusercontent.com/mosishall/images.github.io/master/crgithub_upload_remote/github_blogs/5.jpg">
<meta property="og:image" content="https://raw.githubusercontent.com/mosishall/images.github.io/master/crgithub_upload_remote/github_blogs/6.jpg">
<meta property="og:image" content="https://raw.githubusercontent.com/mosishall/images.github.io/master/crgithub_upload_remote/github_blogs/7.jpg">
<meta property="og:image" content="https://raw.githubusercontent.com/mosishall/images.github.io/master/crgithub_upload_remote/github_blogs/8.jpg">
<meta property="og:image" content="https://raw.githubusercontent.com/mosishall/images.github.io/master/crgithub_upload_remote/github_blogs/9.jpg">
<meta property="og:image" content="https://raw.githubusercontent.com/mosishall/images.github.io/master/crgithub_upload_remote/github_blogs/10.jpg">
<meta property="og:image" content="https://raw.githubusercontent.com/mosishall/images.github.io/master/crgithub_upload_remote/github_blogs/11.jpg">
<meta property="og:image" content="https://raw.githubusercontent.com/mosishall/images.github.io/master/crgithub_upload_remote/github_blogs/12.jpg">
<meta property="og:image" content="https://raw.githubusercontent.com/mosishall/images.github.io/master/crgithub_upload_remote/github_blogs/13.jpg">
<meta property="og:image" content="https://raw.githubusercontent.com/mosishall/images.github.io/master/crgithub_upload_remote/github_blogs/14.jpg">
<meta property="og:image" content="https://raw.githubusercontent.com/mosishall/images.github.io/master/crgithub_upload_remote/github_blogs/15.jpg">
<meta property="og:image" content="https://raw.githubusercontent.com/mosishall/images.github.io/master/crgithub_upload_remote/github_blogs/16.jpg">
<meta property="og:image" content="https://raw.githubusercontent.com/mosishall/images.github.io/master/crgithub_upload_remote/github_blogs/17.jpg">
<meta property="og:image" content="https://raw.githubusercontent.com/mosishall/images.github.io/master/crgithub_upload_remote/github_blogs/18.jpg">
<meta property="og:image" content="https://raw.githubusercontent.com/mosishall/images.github.io/master/crgithub_upload_remote/github_blogs/19.jpg">
<meta property="article:published_time" content="2019-03-27T11:50:14.000Z">
<meta property="article:modified_time" content="2022-03-05T03:42:03.232Z">
<meta property="article:author" content="mosishall">
<meta property="article:tag" content="Hexo">
<meta property="article:tag" content="GitHub">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://raw.githubusercontent.com/mosishall/images.github.io/master/crgithub_upload_remote/github_blogs/1.jpg">

<link rel="canonical" href="https://mosishall.gitee.com/2019/03/27/%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8github%E5%92%8Chexo%E6%90%AD%E5%BB%BA%E4%B8%AA%E4%BA%BA%E5%8D%9A%E5%AE%A2/">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true,
    lang   : 'zh-CN'
  };
</script>

  <title>使用GitHub+Hexo搭建个人博客网站 | MosiShall's Blog</title>
  






  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container use-motion">
    <div class="headband"></div>

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/" class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <h1 class="site-title">MosiShall's Blog</h1>
      <span class="logo-line-after"><i></i></span>
    </a>
      <p class="site-subtitle" itemprop="description">-夕阳落剑复少年-</p>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
        <i class="fa fa-search fa-fw fa-lg"></i>
    </div>
  </div>
</div>




<nav class="site-nav">
  <ul id="menu" class="main-menu menu">
        <li class="menu-item menu-item-home">

    <a href="/" rel="section"><i class="fa fa-home fa-fw"></i>首页</a>

  </li>
        <li class="menu-item menu-item-tags">

    <a href="/tags/" rel="section"><i class="fa fa-tags fa-fw"></i>标签</a>

  </li>
        <li class="menu-item menu-item-categories">

    <a href="/categories/" rel="section"><i class="fa fa-th fa-fw"></i>分类</a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>归档</a>

  </li>
      <li class="menu-item menu-item-search">
        <a role="button" class="popup-trigger"><i class="fa fa-search fa-fw"></i>搜索
        </a>
      </li>
  </ul>
</nav>



  <div class="search-pop-overlay">
    <div class="popup search-popup">
        <div class="search-header">
  <span class="search-icon">
    <i class="fa fa-search"></i>
  </span>
  <div class="search-input-container">
    <input autocomplete="off" autocapitalize="off"
           placeholder="搜索..." spellcheck="false"
           type="search" class="search-input">
  </div>
  <span class="popup-btn-close">
    <i class="fa fa-times-circle"></i>
  </span>
</div>
<div id="search-result">
  <div id="no-result">
    <i class="fa fa-spinner fa-pulse fa-5x fa-fw"></i>
  </div>
</div>

    </div>
  </div>

</div>
    </header>

    
  <div class="reading-progress-bar"></div>
  <a role="button" class="book-mark-link book-mark-link-fixed"></a>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content post posts-expand">
            

    
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="https://mosishall.gitee.com/2019/03/27/%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8github%E5%92%8Chexo%E6%90%AD%E5%BB%BA%E4%B8%AA%E4%BA%BA%E5%8D%9A%E5%AE%A2/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/imgPost/imgHead.gif">
      <meta itemprop="name" content="mosishall">
      <meta itemprop="description" content="-革命-">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="MosiShall's Blog">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          使用GitHub+Hexo搭建个人博客网站
        </h1>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-calendar"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>

              <time title="创建时间：2019-03-27 19:50:14" itemprop="dateCreated datePublished" datetime="2019-03-27T19:50:14+08:00">2019-03-27</time>
            </span>
              <span class="post-meta-item">
                <span class="post-meta-item-icon">
                  <i class="far fa-calendar-check"></i>
                </span>
                <span class="post-meta-item-text">更新于</span>
                <time title="修改时间：2022-03-05 11:42:03" itemprop="dateModified" datetime="2022-03-05T11:42:03+08:00">2022-03-05</time>
              </span>
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-folder"></i>
              </span>
              <span class="post-meta-item-text">分类于</span>
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/%E6%90%AD%E5%BB%BA%E5%8D%9A%E5%AE%A2/" itemprop="url" rel="index"><span itemprop="name">搭建博客</span></a>
                </span>
            </span>

          
  
  <span class="post-meta-item">
    
      <span class="post-meta-item-icon">
        <i class="far fa-comment"></i>
      </span>
      <span class="post-meta-item-text">Valine：</span>
    
    <a title="valine" href="/2019/03/27/%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8github%E5%92%8Chexo%E6%90%AD%E5%BB%BA%E4%B8%AA%E4%BA%BA%E5%8D%9A%E5%AE%A2/#valine-comments" itemprop="discussionUrl">
      <span class="post-comments-count valine-comment-count" data-xid="/2019/03/27/%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8github%E5%92%8Chexo%E6%90%AD%E5%BB%BA%E4%B8%AA%E4%BA%BA%E5%8D%9A%E5%AE%A2/" itemprop="commentCount"></span>
    </a>
  </span>
  
  <br>
            <span class="post-meta-item" title="本文字数">
              <span class="post-meta-item-icon">
                <i class="far fa-file-word"></i>
              </span>
                <span class="post-meta-item-text">本文字数：</span>
              <span>979</span>
            </span>
            <span class="post-meta-item" title="阅读时长">
              <span class="post-meta-item-icon">
                <i class="far fa-clock"></i>
              </span>
                <span class="post-meta-item-text">阅读时长 &asymp;</span>
              <span>1 分钟</span>
            </span>
            <div class="post-description">GitHub是目前网站非常流行的代码托管平台，本篇文章记录如何使用GitHub搭建个人博客。</div>

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
        <hr>
<h2 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h2><div class="note info"><p>问题点一：什么是GitHub，并且又是用来做什么的？<br>问题点二：如何运用Github？</p></div>

<div class="note success"><p>解答：GitHub是一个代码托管平台，你也可以理解为你朋友的“公网服务器站点”，既意已经为托管，就是说，可以把你的东西交给它，让它来帮你运行。它可以实现远程的多人在线管理，例如公司一个项目，需要多人编辑它时，就不需要在考虑Microsoft办公版本号所可能带来的问题。它同样也是一个交流学习的平台，你可以浏览其他人的项目仓库，查看源代码，问题追踪，简单来说就是“同性交友平台”，当然这只是它的戏称。如果以上的功能你可能都不会用到，那么它依然可以渗透到你的生活，当然这需要你自己去发掘它的价值。<br>Your are what you think.</p></div>

<hr>
<h2 id="申请创建GitHub账户，并新建仓库"><a href="#申请创建GitHub账户，并新建仓库" class="headerlink" title="申请创建GitHub账户，并新建仓库"></a>申请创建GitHub账户，并新建仓库</h2><ol>
<li><p><a target="_blank" rel="noopener" href="https://github.com/join">注册传送门</a> [STEP 2 or 3 根据自己实际情况填写就行]<br><img src="https://raw.githubusercontent.com/mosishall/images.github.io/master/crgithub_upload_remote/github_blogs/1.jpg"></p>
</li>
<li><p>申请完成之后需要邮箱验证。</p>
</li>
<li><p>登入自己的GitHub账户,进入仓库面板。 <a target="_blank" rel="noopener" href="https://github.com/">传送门</a><br><img src="https://raw.githubusercontent.com/mosishall/images.github.io/master/crgithub_upload_remote/github_blogs/2.jpg"></p>
</li>
<li><p>新建仓库，并进行配置。<br><img src="https://raw.githubusercontent.com/mosishall/images.github.io/master/crgithub_upload_remote/github_blogs/3.jpg"></p>
</li>
<li><p>配置仓库页<br><img src="https://raw.githubusercontent.com/mosishall/images.github.io/master/crgithub_upload_remote/github_blogs/4.jpg"><br><img src="https://raw.githubusercontent.com/mosishall/images.github.io/master/crgithub_upload_remote/github_blogs/5.jpg"></p>
</li>
</ol>
<hr>
<h2 id="下载需要使用的环境"><a href="#下载需要使用的环境" class="headerlink" title="下载需要使用的环境"></a>下载需要使用的环境</h2><h3 id="Git"><a href="#Git" class="headerlink" title="Git"></a>Git</h3><ol>
<li>Git 分布式版本控制系统，用来和github进行互联，可以使用linux 命令。<a target="_blank" rel="noopener" href="https://baike.baidu.com/item/GIT/12647237?fr=aladdin2">百度介绍</a><br><a target="_blank" rel="noopener" href="https://www.git-scm.com/download/">Git下载链接</a></li>
</ol>
<h3 id="Node-js"><a href="#Node-js" class="headerlink" title="Node.js"></a>Node.js</h3><ol start="2">
<li>Node.js 是一个基于 Chrome V8 引擎的 JavaScript 运行环境。 <a target="_blank" rel="noopener" href="https://baike.baidu.com/item/node.js/7567977?fromtitle=nodejs&fromid=11244313&fr=aladdin">百度介绍</a><br><a target="_blank" rel="noopener" href="https://baike.baidu.com/item/node.js/7567977?fromtitle=nodejs&fromid=11244313&fr=aladdin">Node.js下载链接</a></li>
</ol>
<h2 id="使用Hexo框架"><a href="#使用Hexo框架" class="headerlink" title="使用Hexo框架"></a>使用Hexo框架</h2><p><a target="_blank" rel="noopener" href="https://hexo.io/zh-cn/">Hexo文档链接</a></p>
<ol>
<li>在你的博客项目文件下启用git 命令框</li>
<li>使用以下命令进行配置 (请依次进行配置)<figure class="highlight awk"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm install hexo-cli -g  <span class="regexp">//</span>安装hexo命令</span><br></pre></td></tr></table></figure></li>
</ol>
<blockquote>
<p>安装完成后查看版本号以进行确认。<br><img src="https://raw.githubusercontent.com/mosishall/images.github.io/master/crgithub_upload_remote/github_blogs/6.jpg"></p>
</blockquote>
<figure class="highlight awk"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">hexo init blog         <span class="regexp">//</span>初始化博客</span><br><span class="line">cd blog                <span class="regexp">//</span>进入博客目录</span><br></pre></td></tr></table></figure>
<blockquote>
<p>查看是否初始化成功<br><img src="https://raw.githubusercontent.com/mosishall/images.github.io/master/crgithub_upload_remote/github_blogs/7.jpg"></p>
</blockquote>
<figure class="highlight awk"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">npm install				<span class="regexp">//</span>安装npm</span><br><span class="line">hexo server				<span class="regexp">//</span>启用服务器</span><br></pre></td></tr></table></figure>
<blockquote>
<p>npm 报错<br><img src="https://raw.githubusercontent.com/mosishall/images.github.io/master/crgithub_upload_remote/github_blogs/8.jpg"></p>
</blockquote>
<ol start="3">
<li>进行本地测试，如若出现以下结果，则本地测试成功</li>
</ol>
<p><img src="https://raw.githubusercontent.com/mosishall/images.github.io/master/crgithub_upload_remote/github_blogs/9.jpg"></p>
<ol start="4">
<li><p>hexo命令 的一些其他简单用法<br><img src="https://raw.githubusercontent.com/mosishall/images.github.io/master/crgithub_upload_remote/github_blogs/10.jpg"></p>
</li>
<li><p>生成静态配置文件，建议在生成之前先hexo clean 清空缓存，缓存很重要的qwq。<br><img src="https://raw.githubusercontent.com/mosishall/images.github.io/master/crgithub_upload_remote/github_blogs/11.jpg"></p>
</li>
<li><p>配置站点路径和简单模板内容</p>
</li>
</ol>
<ul>
<li>打开站点配置文件<br><img src="https://raw.githubusercontent.com/mosishall/images.github.io/master/crgithub_upload_remote/github_blogs/12.jpg"></li>
</ul>
<ul>
<li>复制站点url路径<br><img src="https://raw.githubusercontent.com/mosishall/images.github.io/master/crgithub_upload_remote/github_blogs/13.jpg"></li>
</ul>
<ul>
<li>修改config.yml<br><img src="https://raw.githubusercontent.com/mosishall/images.github.io/master/crgithub_upload_remote/github_blogs/14.jpg"></li>
</ul>
<ul>
<li>复制项目仓库地址<br><img src="https://raw.githubusercontent.com/mosishall/images.github.io/master/crgithub_upload_remote/github_blogs/15.jpg"></li>
</ul>
<ul>
<li>配置类型、repo源和分支<br><img src="https://raw.githubusercontent.com/mosishall/images.github.io/master/crgithub_upload_remote/github_blogs/16.jpg"></li>
</ul>
<ol start="7">
<li>将项目部署到github<figure class="highlight ada"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">hexo d </span><br><span class="line">报错解决命令：</span><br><span class="line">npm install hexo-deployer-git <span class="comment">--save</span></span><br></pre></td></tr></table></figure></li>
</ol>
<p><img src="https://raw.githubusercontent.com/mosishall/images.github.io/master/crgithub_upload_remote/github_blogs/17.jpg"></p>
<ol start="8">
<li>查看自己的项目仓库是否上传成功。</li>
</ol>
<p><img src="https://raw.githubusercontent.com/mosishall/images.github.io/master/crgithub_upload_remote/github_blogs/18.jpg"></p>
<ol start="9">
<li>公网地址访问测试</li>
</ol>
<p><img src="https://raw.githubusercontent.com/mosishall/images.github.io/master/crgithub_upload_remote/github_blogs/19.jpg"></p>
<div class="note success"><p>聪明的小机智是否搭建测试成功了呢，欢迎以评论，和邮箱的方式留下你的任何问题。</p></div>
    </div>

    
    
    
        <div class="reward-container">
  <div>您的鼓励是对我创作的动力来源.</div>
  <button onclick="var qr = document.getElementById('qr'); qr.style.display = (qr.style.display === 'none') ? 'block' : 'none';">
    打赏
  </button>
  <div id="qr" style="display: none;">
      
      <div style="display: inline-block;">
        <img src="/imgPost/weChatPay.jpg" alt="mosishall 微信支付">
        <p>微信支付</p>
      </div>

  </div>
</div>

        

<div>
<ul class="post-copyright">
  <li class="post-copyright-author">
    <strong>本文作者： </strong>mosishall
  </li>
  <li class="post-copyright-link">
    <strong>本文链接：</strong>
    <a href="https://mosishall.gitee.com/2019/03/27/%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8github%E5%92%8Chexo%E6%90%AD%E5%BB%BA%E4%B8%AA%E4%BA%BA%E5%8D%9A%E5%AE%A2/" title="使用GitHub+Hexo搭建个人博客网站">https://mosishall.gitee.com/2019/03/27/如何使用github和hexo搭建个人博客/</a>
  </li>
  <li class="post-copyright-license">
    <strong>版权声明： </strong>本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" rel="noopener" target="_blank"><i class="fab fa-fw fa-creative-commons"></i>BY-NC-SA</a> 许可协议。转载请注明出处！
  </li>
</ul>
</div>


      <footer class="post-footer">
          <div class="post-tags">
              <a href="/tags/Hexo/" rel="tag"># Hexo</a>
              <a href="/tags/GitHub/" rel="tag"># GitHub</a>
          </div>

        


        
    <div class="post-nav">
      <div class="post-nav-item">
    <a href="/2019/03/17/markdown%E5%9F%BA%E7%A1%80%E8%AF%AD%E6%B3%95/" rel="prev" title="Markdown语法记录">
      <i class="fa fa-chevron-left"></i> Markdown语法记录
    </a></div>
      <div class="post-nav-item">
    <a href="/2019/03/27/markdown%E6%96%87%E7%AB%A0%E5%88%86%E7%B1%BB%E5%92%8C%E6%A0%87%E7%AD%BE/" rel="next" title="markdown文章分类和标签">
      markdown文章分类和标签 <i class="fa fa-chevron-right"></i>
    </a></div>
    </div>
      </footer>
    
  </article>
  
  
  



          </div>
          
    <div class="comments" id="valine-comments"></div>

<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
          <div class="post-toc motion-element"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%89%8D%E8%A8%80"><span class="nav-number">1.</span> <span class="nav-text">前言</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E7%94%B3%E8%AF%B7%E5%88%9B%E5%BB%BAGitHub%E8%B4%A6%E6%88%B7%EF%BC%8C%E5%B9%B6%E6%96%B0%E5%BB%BA%E4%BB%93%E5%BA%93"><span class="nav-number">2.</span> <span class="nav-text">申请创建GitHub账户，并新建仓库</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E4%B8%8B%E8%BD%BD%E9%9C%80%E8%A6%81%E4%BD%BF%E7%94%A8%E7%9A%84%E7%8E%AF%E5%A2%83"><span class="nav-number">3.</span> <span class="nav-text">下载需要使用的环境</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#Git"><span class="nav-number">3.1.</span> <span class="nav-text">Git</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#Node-js"><span class="nav-number">3.2.</span> <span class="nav-text">Node.js</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E4%BD%BF%E7%94%A8Hexo%E6%A1%86%E6%9E%B6"><span class="nav-number">4.</span> <span class="nav-text">使用Hexo框架</span></a></li></ol></div>
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
    <img class="site-author-image" itemprop="image" alt="mosishall"
      src="/imgPost/imgHead.gif">
  <p class="site-author-name" itemprop="name">mosishall</p>
  <div class="site-description" itemprop="description">-革命-</div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/archives/">
        
          <span class="site-state-item-count">7</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/categories/">
          
        <span class="site-state-item-count">3</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
        <span class="site-state-item-count">6</span>
        <span class="site-state-item-name">标签</span>
      </div>
  </nav>
</div>
  <div class="links-of-author motion-element">
      <span class="links-of-author-item">
        <a href="https://github.com/mosishall" title="GitHub → https:&#x2F;&#x2F;github.com&#x2F;mosishall" rel="noopener" target="_blank"><i class="fab fa-github fa-fw"></i>GitHub</a>
      </span>
      <span class="links-of-author-item">
        <a href="mailto:mosishall@hotmail.com" title="E-Mail → mailto:mosishall@hotmail.com" rel="noopener" target="_blank"><i class="fa fa-envelope fa-fw"></i>E-Mail</a>
      </span>
      <span class="links-of-author-item">
        <a href="https://space.bilibili.com/29608173" title="Bilibili → https:&#x2F;&#x2F;space.bilibili.com&#x2F;29608173" rel="noopener" target="_blank"><i class="youtube fa-fw"></i>Bilibili</a>
      </span>
  </div>


  <div class="links-of-blogroll motion-element">
    <div class="links-of-blogroll-title"><i class="fa fa-link fa-fw"></i>
      Links
    </div>
    <ul class="links-of-blogroll-list">
        <li class="links-of-blogroll-item">
          <a href="https://mosishall.gitee.io/" title="https:&#x2F;&#x2F;mosishall.gitee.io&#x2F;" rel="noopener" target="_blank">Gittee</a>
        </li>
    </ul>
  </div>

      </div>
        <div class="back-to-top motion-element">
          <i class="fa fa-arrow-up"></i>
          <span>0%</span>
        </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

        

<div class="copyright">
  
  &copy; 
  <span itemprop="copyrightYear">2022</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">mosishall</span>
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item-icon">
      <i class="fa fa-chart-area"></i>
    </span>
    <span title="站点总字数">5k</span>
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item-icon">
      <i class="fa fa-coffee"></i>
    </span>
    <span title="站点阅读时长">4 分钟</span>
</div>

        








      </div>
    </footer>
  </div>

  
  <script src="/lib/anime.min.js"></script>
  <script src="/lib/velocity/velocity.min.js"></script>
  <script src="/lib/velocity/velocity.ui.min.js"></script>

<script src="/js/utils.js"></script>

<script src="/js/motion.js"></script>


<script src="/js/schemes/pisces.js"></script>


<script src="/js/next-boot.js"></script>

<script src="/js/bookmark.js"></script>




  




  
<script src="/js/local-search.js"></script>













  

  


<script>
NexT.utils.loadComments(document.querySelector('#valine-comments'), () => {
  NexT.utils.getScript('//cdn.jsdelivr.net/npm/valine@1/dist/Valine.min.js', () => {
    var GUEST = ['nick', 'mail', 'link'];
    var guest = 'nick,mail,link';
    guest = guest.split(',').filter(item => {
      return GUEST.includes(item);
    });
    new Valine({
      el         : '#valine-comments',
      verify     : false,
      notify     : false,
      appId      : 'Gb2cEwlWnKgKU91Q9t5ruqXI-gzGzoHsz',
      appKey     : 'vamb0g25DKBaFuIAGRGAjTuG',
      placeholder: "你是不是没屁放？",
      avatar     : 'mm',
      meta       : guest,
      pageSize   : '10' || 10,
      visitor    : false,
      lang       : '' || 'zh-cn',
      path       : location.pathname,
      recordIP   : false,
      serverURLs : ''
    });
  }, window.Valine);
});
</script>

<script src="/live2dw/lib/L2Dwidget.min.js?094cbace49a39548bed64abff5988b05"></script><script>L2Dwidget.init({"pluginRootPath":"live2dw/","pluginJsPath":"lib/","pluginModelPath":"assets/","tagMode":false,"debug":false,"model":{"jsonPath":"/live2dw/assets/haru02.model.json"},"display":{"position":"left","width":150,"height":400},"mobile":{"show":false,"search":null},"path":"search.xml","field":"post","format":"html","limit":10000,"log":false});</script></body>
</html>
